package com.xuecheng.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.base.model.RestResponse;
import com.xuecheng.content.model.dto.BindMediaDto;
import com.xuecheng.content.model.dto.SaveTeachplanDto;
import com.xuecheng.content.model.dto.TeachplanDto;
import com.xuecheng.content.model.po.Teachplan;
import java.util.List;

public interface TeachplanService extends IService<Teachplan> {
    List<TeachplanDto> queryAllTeachplansByCourseId(Long courseId);

    Teachplan saveTeachplan(SaveTeachplanDto dto);

    void moveUp(Long id);

    void moveDown(Long id);

    void deleteTeachplan(Long id);

    /**
     * 课程计划绑定视频
     * @param companyId
     * @param dto
     * @return
     */
    RestResponse<Boolean> bindMedia(Long companyId, BindMediaDto dto);

    /**
     * 课程计划解绑视频
     * @param companyId
     * @param teachplanId
     * @param mediaId
     * @return
     */
    RestResponse<Boolean> unbindMedia(Long companyId, Long teachplanId, Long mediaId);
}
